/***
 * Copyright (c) 2021 Tyrael, Y. LI
 * */

.emoji-fullscreen-danmaku {
    overflow: visible !important;
    /*height: 160px !important;*/
}

.emoji-fullscreen-danmaku:hover #fullscreen-table{
    opacity: 0.9;
}

@keyframes fade-in {
    0% {
        opacity: 0.0
    }
    100% {
        opacity: 1.0
    }
}

@keyframes fade-out {
    0% {
        opacity: 1.0
    }
    100% {
        opacity: 0.0
    }
}

@keyframes click-in {
    0% {
        width: 52px;
        height: 52px;
        transform: translate(-1px, -1px);
    }
    50% {
        width: 50px;
        height: 50px;
        transform: translate(0px, 0px);
    }
    100% {
        width: 46px;
        height: 46px;
        transform: translate(2px, 2px);
    }
}

@keyframes click-out {
    0% {
        width: 46px;
        height: 46px;
        transform: translate(2px, 2px);
    }
    50% {
        width: 50px;
        height: 50px;
        transform: translate(0px, 0px);
    }
    100% {
        width: 52px;
        height: 52px;
        transform: translate(-1px, -1px);
    }
}

@keyframes hover-in {
    0% {
        width: 50px;
        height: 50px;
        transform: translate(0px, 0px);
    }
    100% {
        width: 52px;
        height: 52px;
        transform: translate(-1px, -1px);
    }
}

@keyframes hover-out {
    0% {
        width: 52px;
        height: 52px;
        transform: translate(-1px, -1px);
    }
    100% {
        width: 50px;
        height: 50px;
        transform: translate(0px, 0px);
    }
}

.selection-fade-in {
    animation-name: fade-in;
    animation-duration: 0.3s;
}

.selection-fade-out {
    animation-name: fade-out;
    animation-duration: 0.3s;
}

.popup-click-hoverin {
    animation-name: hover-in;
    animation-duration: 0.1s;
    animation-fill-mode: forwards;
}

.popup-click-hoverout {
    animation-name: hover-out;
    animation-duration: 0.1s;
    animation-fill-mode: forwards;
}

.popup-click-in {
    animation-name: click-in;
    animation-duration: 0.2s;
    animation-fill-mode: forwards;
}

.popup-click-out {
    animation-name: click-out;
    animation-duration: 0.2s;
    animation-fill-mode: forwards;
}

.emoji_sec, .rua-emoji-container {
    text-align: center;
    overflow-y: scroll;
    scrollbar-width: thin;
}

.emoji_sec::-webkit-scrollbar, .rua-emoji-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.emoji_sec::-webkit-scrollbar-thumb, .rua-emoji-container::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background-color: #aaa;
}

.emoji-table {
    padding-top: 5px;
}

.rua-table-header {
    user-select: none;
    font-size: 13px;
    text-align: left;
    color: #999;
}

.rua-emoji-icon{
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    transition: 0.2s;
}

.rua-emoji-icon-active{
    transition: 0.2s;
}

.rua-emoji-icon-active:hover{
    transform: scale(1.1);
}

.rua-emoji-icon-active:active{
    transform: scale(0.9);
}

.rua-emoji-icon-inactive{
    opacity: 0.3;
}

.rua-emoji-requirement {
    top: 0;
    right: 0;
    position: absolute;
    color: #fff;
    background-color: #FF6699;
    border-radius: 2px;
    font-size: 10px;
    height: 12px;
    line-height: 12px;
    text-align: center;
    white-space: nowrap;
    max-width: 80%;
    user-select: none;
    z-index: 99;
}

.rua-emoji-requirement-text {
    transform: scale(.84);
}

#emoji-popup {
    width: 50px;
    height: 50px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    position: fixed;
    z-index: 999999;
}

#emoji-selection {
    width: 300px;
    height: 350px;
    background-color: var(--bg1);
    position: fixed;
    z-index: 999999;
    border-radius: 12px;
    margin: 0 auto;
    overflow: hidden;
}

#emoji-selection table {
    margin: 0 auto;
}

#emoji-selection td {
    width: 60px;
    height: 60px;
    position: relative;
}

#emoji-tray {
    width: 300px;
    height: 280px;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}

#load {
    margin-top: 170px;
    text-align: center;
    vertical-align: middle;
}

#rua-dm-input-form {
    left: 10px;
    bottom: 5px;
    width: 200px;
    height: 50px;
    resize: none;
    //border: 1px solid #DDD;
    border-radius: 5px;
    position: absolute;
    padding: 5px 0 0 5px;
    background-color: var(--bg1);
    color: var(--Ga9);
    border: 1px solid var(--Ga2);
}

#rua-dm-input-form:focus {
    outline: none;
    border: 1px solid #00A0FF;
}

#rua-dm-input-form::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#rua-dm-input-form::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background-color: #aaa;
}

#length-indicator {
    right: 90px;
    bottom: 10px;
    color: #AAA;
    position: absolute;
}

#fullscreen-table {
    width: inherit;
    height: 120px;
    bottom: 40px;
    background-color: #222;
    opacity: 0.3;
    position: absolute;
    z-index: 9999999;
    align-items: center;
    border-radius: 5px;
    transition: 0.5s;
}

#fullscreen-table table {
    margin: 0 auto;
}

#fullscreen-table td {
    width: 60px;
    height: 60px;
    position: relative;
}

#fs-emoji-bg {
    opacity: 0;
    z-index: -1;
    width: inherit;
    height: 160px;
    position: absolute;
}

#fullscreen-input {
    height: 100%;
    line-height: initial;
    width: 100%;
    border: 0;
    padding: 8px 8px 10px 8px;
    color: #fff;
    font-size: 12px;
    outline: 0;
    box-sizing: border-box;
    background: 0 0;
}

#fullscreen-input::placeholder {
    color: #fff;
}

#fullscreen-text-length {
    color: #d3dadf;
    right: 8px;
    position: absolute;
    user-select: none;
}

#fullscreen-sub-btn {
    right: 0;
    flex-shrink: 0;
    width: 60px;
    height: 100%;
    cursor: pointer;
    color: #fff;
    text-align: center;
    background-color: #23ade5;
}

#first-child {
    flex: 1;
    position: relative;
}

#rua-err-bubble{
    position: fixed;
    height: 35px;
    line-height: 35px;
    font-size: 18px;
    text-align: center;
    border-radius: 5px;
    color: #fff;
    background: #ff5e57;
    transition: 0.4s;
    z-index: 99999999;
}

#fullscreen-label{
    color: var(--text3);
}

html[theme*="dark"] #emoji-tray, #input-button{
    opacity: 0.8;
}

#input-button {
    right: 10px;
    bottom: 5px;
    width: 65px;
    height: 20px;
    border: 0;
    background: #FFD432;
    border-radius: 5px;
    color: #FFF;
    position: absolute;
    cursor: pointer;
}

#input-button:hover {
    background: #DDB210;
}

#rua-go-to-live-room {
    right: 5px;
    bottom: 40px;
    width: 75px;
    height: 20px;
    border: 0;
    background: var(--bili-pink);
    border-radius: 5px;
    color: #FFF;
    position: absolute;
    transform: scale(0.9);
    cursor: pointer;
}

#rua-go-to-live-room:hover {
    opacity: 0.8;
}

.rua-emoji-header{
    line-height: 46px;
    height: 40px;
    font-size: 12px;
    background-color: var(--Ga1);
    display: flex;
    justify-content: flex-start;
    white-space: nowrap;
    position: relative;
    overflow: scroll!important;
    scrollbar-width: none;
}

.rua-emoji-header::-webkit-scrollbar {
    display: none;
}

.rua-header-item{
    color: var(--text3);
    cursor: pointer;
    width: 50px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.rua-header-item img{
    width: 30px;
    height: 30px;
    border-radius: 4px;
}

.rua-emoji-header .active{
    background-color: var(--bg1);
}

.rua-emoji-item{
    position: relative;
    width: 65px;
    height: 65px;
    display: flex;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
}

.rua-emoji-item-xs{
    width: 30px;
    height: 30px;
}

.rua-emoji-item img{
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    display: block;
}

.rua-emoji-container{
    display: none;
    flex-wrap: wrap;
    overflow-y: scroll;
    overflow-x: hidden;
    margin-left: 5px;
}

.rua-emoji-icon-inactive-new{
    opacity: 0.3;
}